"""
定义通用的函数，实现断言
"""


def common_assert(resp, code, status, msg):
    assert code == resp.status_code
    assert status == resp.json().get('status')
    assert msg in resp.json().get('msg')

